﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Budget.WCF;
using Budget.DataAccess;

namespace Budget.UnitTests.WCF.DIObjects
{
	public class DIIncomeServiceWrapper
	{
		IIncomeService svc;

		public DIIncomeServiceWrapper(IIncomeService svc)
		{
			this.svc = svc;
		}

		public Income GetIncomeById( int ID )
		{
			return svc.GetIncomeById( ID );
		}

		public IList<Income> GetAll()
		{
			return this.svc.GetAll();
		}

		public void Save( Income income )
		{
			this.svc.Save( income );
		}

		public decimal GetTotalIncome()
		{
			return svc.GetTotalIncome();
		}
	}
}
